package com.hyfrogx.modules.manage.service.feedback.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hyfrogx.common.utils.QueryExt;
import com.hyfrogx.modules.manage.dao.feedback.FeedbackDao;
import com.hyfrogx.modules.manage.entity.feedback.FeedbackEntity;
import com.hyfrogx.modules.manage.service.feedback.FeedbackService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * @author 罗春杰-技术部
 */
@Service
public class FeedbackServiceImpl extends ServiceImpl<FeedbackDao, FeedbackEntity> implements FeedbackService {
    @Override
    public Page findAllFeedbacks(QueryExt queryExt) {
        Map map = new HashMap();
        map.putAll(queryExt.getCondition());
        queryExt.setRecords(this.baseMapper.findAllFeedback(map, queryExt));
        return queryExt;
    }
}
